package com.fast.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//scanBasePackages 指定要扫描的基础包路径。
//@EnableAsync 是用于启用异步方法执行的注解。
//@EnableTransactionManagement 启用事务管理和。
//@EnableScheduling 启用定时任务的注解。
@EnableAsync
//@SpringBootApplication(scanBasePackages = {"com.fast.server"})
@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling
public class CloudBackendApplication {
    public static void main(String[] args) {
        SpringApplication.run(CloudBackendApplication.class, args);
        System.out.println("系统已启动！！！");
    }
}
